// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取操作日志列表 GET /api/log */
export async function queryLog(
  params: {
    // query
    /** 当前的页码 */
    current?: number;
    /** 页面的容量 */
    pageSize?: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RequestData>('/api/log', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除操作日志 DELETE /api/log */
export async function removeLog(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/log', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}

/** 批量删除操作日志 DELETE /api/log/batchdel */
export async function batchRemoveLog(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/log/batchdel', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}


/** 获取下载日志列表 GET /api/log */
export async function queryDownloadLog(
  params: {
    // query
    /** 当前的页码 */
    current?: number;
    /** 页面的容量 */
    pageSize?: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RequestData>('/api/downLoadLog', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除操作日志 DELETE /api/log */
export async function removeDownloadLog(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/downLoadLog', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}

/** 批量删除操作日志 DELETE /api/log/batchdel */
export async function batchRemoveDownloadLog(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/downLoadLog/batchdel', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}


/** 获取异常日志列表 GET /api/log */
export async function queryLogException(
  params: {
    // query
    /** 当前的页码 */
    current?: number;
    /** 页面的容量 */
    pageSize?: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RequestData>('/api/exceptionLog', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除操作日志 DELETE /api/log */
export async function removeLogException(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/exceptionLog', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}

/** 批量删除操作日志 DELETE /api/log/batchdel */
export async function batchRemoveLogException(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/exceptionLog/batchdel', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}


/** 获取运行日志列表 GET /api/log */
export async function queryLogRunning(
  params: {
    // query
    /** 当前的页码 */
    current?: number;
    /** 页面的容量 */
    pageSize?: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RequestData>('/api/runningLog', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除操作日志 DELETE /api/log */
export async function removeLogRunning(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/runningLog', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}

/** 批量删除操作日志 DELETE /api/log/batchdel */
export async function batchRemoveLogRunning(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/runningLog/batchdel', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}